package com.cj.order.service;

import com.cj.common.response.Result;
import com.cj.order.service.impl.StockFeignFallbackFactory;
import org.dromara.hmily.annotation.Hmily;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/5/25 18:03
 */
@FeignClient(value = "stock", fallbackFactory = StockFeignFallbackFactory.class)
public interface StockFeignService {

    @RequestMapping(value = "/stock/deleteStock", method = {RequestMethod.POST})
    @Hmily
    Result deleteStock(Map<String, Object> map);

}
